<?php
	include("./config.php");
	$var = $_GET['var'];
	$value = $_GET['value'];
	
	$sql = "UPDATE CHILD SET $var = $value where child_num = '1'";
	$result = mysql_query($sql) or die ('fail');
	
	header("../user_content.php"); 
?>